package game;

public class Cup {
	
	private int dice1, dice2; //declaring 2 variables
	
	public Cup() //Constructor cup where variables get numbers
	{
		dice1=1;
		dice2=2;
	}
	
	public void rollDices() //method w/o return  rolldices 
	{
		dice1=(int)(Math.random()*6)+1; //generates random number * 6 takes like integer +1 
		dice2=(int)(Math.random()*6)+1;
	}
	
	public int[] getArray()  // method with array
	{
		int[] d = new int[2]; //array of 2 
		d[0]=dice1;				//first element of array = dice1
		d[1]=dice2;				//first element of array = dice2
		return d;				
	}
	
	public int getDice1() // Method get for operating with private variable
	{
		return dice1; //return of the variable
	}
	
	public int getDice2() // Method get for operating with private variable
	{
		return dice2; //return of the variable
	}
	
	public int getRoll() // Method get for operating with private variable
	{
		return dice1+dice2; //return of the variable
	}
}
